package com.vshop.service.impl;

import com.vshop.entity.comentity.UserNoCardOrder;
import com.vshop.mapper.UserNoCardOrderMapper;
import com.vshop.service.UserNoCardOrderService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional(rollbackFor = Exception.class)
public class UserNoCardOrderServiceImpl implements UserNoCardOrderService {

    @Resource
    UserNoCardOrderMapper userNoCardOrderMapper;

    @Override
    public void insertNoCardRecord(UserNoCardOrder noCardOrder) {
        userNoCardOrderMapper.insertNoCardRecord(noCardOrder);
    }

    @Override
    public void updateNoCardOrderId(UserNoCardOrder noCard) {
        userNoCardOrderMapper.updateNoCardOrderId(noCard);
    }
}
